package com.bit.JVMTest;

class  grandFather{
    static{
        System.out.println("爷爷静态代码块");
    }
}
class Father extends grandFather{
    public  static int a = 10;
    static {
        System.out.println("爸爸静态代码块");
    }
}
class Son extends Father{
    public static int b = 20;
    static {
        System.out.println("儿子静态代码块");
    }
}
public class ClassLoaderTest {
    public static void main(String[] args) {
        System.out.println(Son.a);
    }
}
